package com.zjhcsoft.shop.action;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.zjhcsoft.shop.model.Serial;
import com.zjhcsoft.shop.sys.buffer.TypeBuffer;

@Controller
public class SerialAction extends ActionSupport {
	private static final long serialVersionUID = 1359090410097337654L;
	private Long typeid;
	private List<Serial> serials;
	
	public String sonSerials() {
		serials=TypeBuffer.getSerialByTypeId(typeid);
		return "success";
	}


	public void setSerials(List<Serial> serials) {
		this.serials = serials;
	}

	@JSON(serialize = false)
	public Long getTypeid() {
		return typeid;
	}


	public void setTypeid(Long typeid) {
		this.typeid = typeid;
	}


	public List<Serial> getSerials() {
		return serials;
	}
	
}
